package com.cn.steam.iam.mapper.iam;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.steam.iam.model.po.IamPartnerRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import static com.cn.steam.foundation.common.model.CommonConstant.DATA_SOURCE_KEY_IAM;


/**
 * @author huangzz
 */
@DS(DATA_SOURCE_KEY_IAM)
public interface IamPartnerRoleMapper extends BaseMapper<IamPartnerRole> {
    @Select("SELECT role_id FROM iam_partner_role WHERE partner_id = #{partnerId}")
    List<String> qryRoleIdByPartnerId(@Param("partnerId")String partnerId);
}
